package net.wanho.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 产品表
 * @TableName t_goods
 */
@TableName(value ="t_goods")
@Data
public class Goods implements Serializable {
    /**
     * 编号
     */
    @TableId(type = IdType.AUTO, value = "goods_id")
    private Integer id;

    /**
     * 产品名称
     */
    @TableField(value = "goods_name")
    private String name;

    /**
     * 产品价格
     */
    @TableField("goods_price")
    private BigDecimal price;

    /**
     * 产品数量
     */
    @TableField("goods_number")
    private Integer number;

    /**
     * 产品介绍
     */
    @TableField("goods_introduce")
    private String introduce;

    /**
     * 产品状态(0未通过,1审核中,2已审核)
     */
    @TableField("goods_state")
    private Integer state;

    /**
     * 添加时间
     */
    private Date addTime;

    /**
     * 是否删除(0正常,1删除)
     */
    private Integer isDel;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}